<%@page language="java" import="com.scalar.chiptrack.finance.integration.company.Bank" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<SCRIPT language="JavaScript1.2">
function submit()
{
    document.bankFormSearch.submit();
}
</SCRIPT>

</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->

<%@include file="/jsp/includes/header.jsp"  %>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/finance/finance_menu.jsp" %>

</TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<!-- from here your body starts -->
<P>
<TABLE BORDER="0" WIDTH="100%">
    <html:form name="bankForm" action="/bank.do?action=search" method="post" type="com.scalar.chiptrack.finance.integration.company.forms.BankForm">
    <TR>
        <TD WIDTH="100%" class="NArialW">
            <P ALIGN="CENTER">Bank
        </TD>
    </TR>
    <TR>
        <TD WIDTH="100%">&nbsp;</TD>
    </TR>
    <TR>
        <TD><chiptrack:info styleClass="NArialL" /></TD>
    </TR>
    <TR>
        <TD><chiptrack:errors styleClass="NArialL" /></TD>
    </TR>
    <TR>
        <TD><chiptrack:moreErrorInfo styleClass="NArialL" /></TD>
    </TR>
    <TR>
	    <TD WIDTH="100%">
		    <TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
			    <TR>
				    <TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="26%">Bank Id:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="22%"><html:text name="bankForm" property="bankId" size="15" styleClass="txfield"/></TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="23%">Name:</TD>
					<TD WIDTH="1%">&nbsp;</TD>
					<TD WIDTH="24%"><html:text name="bankForm" property="bankName" size="15" styleClass="txfield"/></TD>
					<TD WIDTH="1%">&nbsp;</TD>
                </TR>
				<TR>
				    <TD COLSPAN="9">&nbsp;</TD>
				</TR>
            </TABLE>
        </TD>
    </TR>
	<TR>
	    <TD WIDTH="100%">
		    <TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
			    <TR>
				    <TD WIDTH="50%">
					    <P ALIGN="RIGHT"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/search.gif" WIDTH="61" HEIGHT="17" ALIGN="BOTTOM" BORDER="0" onclick="javascript:submit()">
				    </TD>
					<TD WIDTH="50%"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/reset.gif" WIDTH="53" HEIGHT="17" ALIGN="BOTTOM" BORDER="0" onclick="javascript:reset()"></TD>
				</TR>
				<TR>
				    <TD COLSPAN="2">&nbsp;</TD>
				</TR>
				<TR>
				    <TD COLSPAN="2">To add a new Bank, Please <A HREF="<%= chipTracContext %>/bank.do?action=new">Click Here</A></TD>
				</TR>
				<TR>
				    <TD COLSPAN="2">&nbsp;</TD>
				</TR>
            </TABLE>
        </TD>
    </TR>
    <logic:present name="BankList">
    <TR>
        <TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
            <TR>
				<TD WIDTH="20%" BGCOLOR="#993333">
				    <P ALIGN="CENTER"><B><SPAN STYLE="Font-Size : 11px"><FONT COLOR="white">Bank Id</FONT></SPAN></B>
				</TD>
				<TD WIDTH="20%" BGCOLOR="#993333">
				    <P ALIGN="CENTER"><B><SPAN STYLE="Font-Size : 11px"><FONT COLOR="white">Bank Name</FONT></SPAN></B>
                </TD>
				<TD WIDTH="20%" BGCOLOR="#993333">
				    <P ALIGN="CENTER"><B><SPAN STYLE="Font-Size : 11px"><FONT COLOR="white">City</FONT></SPAN></B>
				</TD>
				<TD WIDTH="20%" BGCOLOR="#993333">
				    <P ALIGN="CENTER"><B><SPAN STYLE="Font-Size : 11px"><FONT COLOR="white">Bank Branch</FONT></SPAN></B>
				</TD>
                <TD WIDTH="20%" BGCOLOR="#993333">
				    <P ALIGN="CENTER"><B><SPAN STYLE="Font-Size : 11px"><FONT COLOR="white">Action</FONT></SPAN></B>
				</TD>
			</TR>
            <logic:iterate id="Bank" name="BankList" indexId="index">
			    <TR <% if( Integer.parseInt( index.toString() ) % 2 == 0 ){ %> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>  class='NArialL'>
				    <TD WIDTH="20%">
                        <bean:write name="Bank" property="bankId"/>
                    </TD>
					<TD WIDTH="20%">
                        <bean:write name="Bank" property="bankName"/>
                    </TD>
					<TD WIDTH="20%">
                        <bean:write name="Bank" property="city"/>
                    </TD>
					<TD WIDTH="20%">
                        <bean:write name="Bank" property="bankBranch"/>
                    </TD>
                    <TD WIDTH="20%" >
                        <P ALIGN="CENTER"><a href="<%= chipTracContext %>/bank.do?action=edit&bankId=<bean:write name="Bank" property="bankId"/> ">Modify</a>
                    </TD>
				</TR>
            </logic:iterate>
        </TABLE>
	</TR>
    </logic:present>
    </html:form>
</TABLE>
</TD></TR></TABLE>
</p>
<!-- Your Work area ends here -->
<!-- Footer starts here -->
<%@include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</html>